/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package business;

import java.io.IOException;

/**
 *
 * @author nacho
 */
public class Main {

	static public void main(String args[]) {
		Cliente cliente = new Cliente();

		try {
			if (args.length < 1) {
				System.out.println("Ingrese comando");
			} else {
				if (args[0].compareTo("rcopy") == 0 && args.length == 3) {
					cliente.rcopy(args[1], args[2]);
				} else if (args[0].compareTo("rcat") == 0 && args.length == 2) {
					cliente.rcat(args[1]);
				} else {
					System.out.println("Error en parámetros");
				}
			}

		} catch (IOException ex) {
			System.err.println("Error de entrada / salida");
			System.err.println(ex.getMessage());
		}
	}

}
